package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_user",schema = "")
public class TableUser {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  @Column(name = "tenant_id")
  private Long tenantId;

  //匹配auth的用户id
  @Column(name = "auth_id")
  private Long authId;

  //null
  @Column(name = "user_name")
  private String userName;

  //部门名称
  @Column(name = "department_name")
  private String departmentName;

  //部门名称
  @Transient
  private String departmentName1;

  //部门职务
  @Column(name = "position")
  private String position;

  //性别
  @Column(name = "gender")
  private String gender;

  //出生日期
  @Column(name = "birth")
  private String birth;

  //出生日期
  @Column(name = "id_card")
  private String idCard;

  //身高
  @Column(name = "height")
  private BigDecimal height;

  //null
  @Column(name = "weight")
  private BigDecimal weight;

  //入职时间
  @Column(name = "in_company_date")
  private Date inCompanyDate;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "update_date")
  private Date updateDate;

  //null
  @Column(name = "update_user_id")
  private Long updateUserId;

  //null
  @Column(name = "update_user_name")
  private String updateUserName;

  //null
  @Column(name = "role_name")
  private String roleName;

  @Column(name = "user_account")
  private String userAccount;


  @Column(name = "user_code")
  private String userCode;

  @Column(name = "user_rank")
  private String userRank;
}
